package com.cn.controller;

import org.junit.jupiter.api.Test;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("two")
@Controller
public class RequestTest {

    @RequestMapping("test01")
    public String test01(){
        System.out.println("test01操作成功");
        return "requestTest";
    }
    @RequestMapping("test0*")
    public String test02(){
        System.out.println("test02操作成功");
        return "requestTest";
    }
    @RequestMapping("a*/test03")
    public String test03(){
        System.out.println("test03操作成功");
        return "requestTest";
    }
    @RequestMapping("a/**/test04")
    public String test04(){
        System.out.println("test04操作成功");
        return "requestTest";
    }
    @RequestMapping("admin/{id}")
    public String test05(@PathVariable("id") String id){
        System.out.println(id);
        System.out.println("test05操作成功");
        return "requestTest";
    }
}
